package test 
{
	import asunit.framework.TestCase;
	import flash.geom.Point;
	import map.MapSource;
	/**
	 * ...
	 * @author Jeroen Gildemacher
	 */
	public class MapSourceTest extends TestCase
	{
		
		public function MapSourceTest(testMethod:String) 
		{
			super(testMethod);
		}
		
		public function testGetSetColorIndex():void {
			var mapSource:MapSource = new MapSource();
			mapSource.setColorByIndexValue(1, 1, 3);
			assertEquals(mapSource.getColor32(1, 1), mapSource.getColors()[3]);
			mapSource.setAsSurfacePixel(1, 1);
			mapSource.setLocked(new Point(1, 1));
			assertFalse(mapSource.getColor32(1, 1) == mapSource.getColors()[3]);
			assertEquals(mapSource.getColorIndexValue(1, 1), 3);
		}
	}

}